<form id="frm_city_edit" method="POST" action="<?php echo $save_action; ?>">
    <?php $this->load->view('location/city/message'); ?>
    <input id="entity_id" type="hidden" name="id" value="<?php echo $city->id; ?>" />
    <div class="clearfix auto_height mb_10">
        <?php $this->load->view('admin/location/city/buttons'); ?>
    </div>
    <div class="form_block">
        <div class="block_header">
            Thông tin căn bản
        </div>
        <div class="block_content">
            <table cellpadding="0px" cellspacing="0px">
                <tr>
                    <td class="frm_label">Tên thành phố(*)</td>
                    <td class="frm_field">
                        <input type="text" class="std_input required" name="data[name]" value="<?php echo $city->name ?>" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="form_block" id="list_district">
        <div class="block_header">
            Danh sách quận / huyện
        </div>
        <div class="block_content">
            <table class="gridview" width="100%" cellpadding="0" cellspacing="0" border="0">
                <thead>
                <tr>
                    <td width="10px">ID</td>
                    <td><label for="chk_category_all">Quận / huyện</label></td>
                </tr>
                </thead>
                <tbody>
                <?php foreach ($districts as $district) :?>
                    <tr>
                        <td>
                            <?php echo $district->id; ?>
                        </td>
                        <td>
                             <?php echo $district->name; ?>
                        </td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>
</form>